<?php echo $this->Session->flash('auth'); ?>
   <!--A Design by W3layouts
Author: W3layout
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
-->
<!DOCTYPE HTML>
<html>
<head>
<title>ProFinder</title>
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href='http://fonts.googleapis.com/css?family=PT+Sans' rel='stylesheet' type='text/css'>
<!--slider-->
<link href="css/slider.css" rel="stylesheet" type="text/css" media="all"/>
<script type="text/javascript" src="js/jquery-1.9.0.min.js"></script>
<script type="text/javascript" src="js/jquery.nivo.slider.js"></script>

<script type="text/javascript">

    $(window).load(function() {
        $('#slider').nivoSlider();
    });
    </script>
</head>
<body>
<div class="header">	
  <div class="wrap"> 
	<div class="header-top">
		 <div class="logo">
			 <h1><a href="/profinder/site"><img src="img/PF - Cópia.png" height="100" width="150" style="padding-top:0px"> ProFinder</a></h1>
		 </div>
	    <div id="text-6" class="visible-all-devices header-text ">	
	     <div class="navbar-collapse collapse">
        <form action="/profinder/site/users/login" id="UserLoginForm" method="post" accept-charset="utf-8"
        	class="navbar-form navbar-right" role="form">
        	<input type="hidden" name="_method" value="POST"/>
            <div class="form-group">
              <input name="data[User][username]" class="form-control" maxlength="50"
              	type="text" id="UserUsername" required="required" placeholder="Email"/>
            </div>
            <div class="form-group">
            	<input name="data[User][password]" placeholder="Password" type="password"
            		id="UserPassword" required="required" class="form-control"/>
            </div>
            <button type="submit" class="btn btn-success">Entrar</button>
          </form>
			
	    	<?php /*<button class="btn btn-primary btn" data-toggle="modal" data-target="#myModal">Cadastre-se</button>
	    	*/ ?>
		</div>
		 <div class="clear"></div> 
	   </div>
   </div>	
</div>
      <!------ Slider ------------>
   <div class="banner">
      <div class="wrap">
		   <div class="cssmenu">
				<?php
					App::import('Controller', 'Pages');
					$pages = new PagesController;
					$pages->constructClasses();
					$categorias=$pages->nomeCategorias();
					$contador=0;
					?>
					<ul>
					<?php
					while($contador<sizeof($categorias))
					{
						?>
						
						
							<li class="dropdown">
								<a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php echo $categorias[$contador]['Categoria']['nome_categoria'] ?><b class="caret"></b></a>
								<ul class="dropdown-menu">
									<?php
									$servicos=$pages->nomeServicos($categorias[$contador]['Categoria']['id']);
									$contadorServicos=0;
									while($contadorServicos<sizeof($servicos))
									{
										
										?>
										<li><a href="#"><?php echo $servicos[$contadorServicos]['Servico']['nome_servico'] ?></a></li>
										 <?php
										$contadorServicos++;
									}
									?>
									</ul>
									<?php
						 
						$contador++;
					}
			?>
											
							<div class="clear"></div> 
						 </ul>

	          </div>
	  	   <div class="slider">
	 		<div class="slider-wrapper theme-default">
	            <div id="slider" class="nivoSlider">
	                
	                <img src="img/pedreiro.jpg" alt="" />
	                <img src="img/empregada-domestica.jpg" alt="" />
	                <img src="img/dj.jpg" alt="" />
	                <img src="img/jardineira.jpg" alt="" />
	                
	                </div>
	             </div>
	        </div>
		</div>
   </div>
  
		<!------End Slider ------------>
  <div class="main">
	 <div class="wrap">
		<div class="content-top">
			 <div class="top-box">
				<h2>Como Funciona o ProFindeeeeeeer</h2>
				<hr>
				
				<div id="foto">
    	<img src="http://s2.glbimg.com/x0zg74yEDNRa71IXi8-eRf1crJY=/top/s.glbimg.com/jo/eg/f/original/2012/12/25/perola.jpg" width="600" height="500" />
        <img src="http://emdestaque.net/facilonline/wp-content/uploads/2011/06/selo.png" width="128" height="128" class="icone1" />
    </div>
				<p>Aqui você encontra o profissional para o serviço que você precisa! </p>
			 </div>
		    <div class="section group">
				<div class="col_1_of_5 span_1_of_5">
					<div class="grid_img">
					 	<img src="img/find.png" alt=""/>
					</div><h3>1.Pesquise o serviço desejado</h3>
					<p>Os profissionais estão separados por categorias de serviço</p>
				</div>
				<div class="col_1_of_5 span_1_of_5">
					<div class="grid_img">
						<img src="images/e2.png" alt=""/>
					</div>
					<h3>Lorem Ipsum is simply</h3>
					<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua..</p>
				</div>
				<div class="col_1_of_5 span_1_of_5">
					<div class="grid_img">
						<img src="images/e3.png" alt=""/>
					</div>
					<h3>Lorem Ipsum is simply</h3>
					<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua..</p>
				</div>
				<div class="col_1_of_5 span_1_of_5">
					<div class="grid_img">
						<img src="images/e4.png" alt=""/>
					</div>
					<h3>Lorem Ipsum is simply</h3>
					<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua..</p>
				</div>
				<div class="col_1_of_5 span_1_of_5">
					<div class="grid_img">
						<img src="images/e5.png" alt=""/>
					</div>
					<h3>Lorem Ipsum is simply</h3>
					<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua..</p>
				</div>
				<div class="clear"></div>
			</div>
		</div>
		
				<div class="clear"></div>
			</div>
		</div>
		
				<div class="clear"></div>
			</div>
		</div>
	   </div>
	</div>
	<div class="footer">
		<div class="wrap">
			<div class="footer-text">
				<h2>Get in touch</h2>
				<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputat</p>
				<ul class="follow_icon">
					<li><a href="#" style="opacity: 1;"><img src="images/fb.png" alt=""></a></li>
					<li><a href="#" style="opacity: 1;"><img src="images/tw.png" alt=""></a></li>
					<li><a href="#" style="opacity: 1;"><img src="images/rss.png" alt=""></a></li>
					<li><a href="#" style="opacity: 1;"><img src="images/g+.png" alt=""></a></li>
					<li><a href="#" style="opacity: 1;"><img src="images/pin.png" alt=""></a></li>
				</ul>
				<div class="copy">
					<p> © 2013 All rights Reserved | Design by <a href="http://w3layouts.com">W3Layouts</a></p>
				</div>
			</div>	
		</div>
	</div>
</body>
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title" id="myModalLabel">Novo Usuário</h4>
      </div>
      <div class="modal-body">
      	
        <?php
			echo $this->Form->create('User', array('action' => 'add'));
			echo $this->Form->input('nome_pessoa');
			echo $this->Form->input('username');
			echo $this->Form->input('password');
			echo $this->Form->input('role');
			
			echo $this->Form->button(
					$this->Html->tag('span', '', array('class' => 'glyphicon glyphicon-ok'))." Salvar",
					array('type' => 'submit', 'class' => 'btn btn-success', 'escape' => false)
			);
			echo " ";
			echo $this->Html->link(
					$this->Html->tag('span', '', array('class' => 'glyphicon glyphicon-remove')) . " Cancelar",
					array('controller' => 'Users','action' => 'index'),
					array('role' => 'button', 'class' => 'btn btn-danger', 'escape' => false)
			);
			
			echo $this->Form->end();
		?>
      </div>
    </div>
  </div>
</div>
</html>


    	
    	
            